From 4c039db50c68066f7f6298e634e12b4a9cadd6c2 Mon Sep 17 00:00:00 2001
From: Alex Suykov <alex.suykov@gmail.com>
Date: Sat, 20 Jan 2018 23:11:02 +0200
Subject: [PATCH xserver 4/8] config/udev: skip tty inputs

Attempts to probe every single TTY device in /dev clutter the logs.
The code was apparently meant for serial Wacom tables, and makes
little sense in modern Linux systems.

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
---
 config/udev.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/config/udev.c b/config/udev.c
index e198e8609..c450ac39a 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -384,8 +384,6 @@ config_udev_pre_init(void)
 
     udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "input",
                                                     NULL);
-    /* For Wacom serial devices */
-    udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "tty", NULL);
 #ifdef CONFIG_UDEV_KMS
     /* For output GPU devices */
     udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "drm", NULL);
@@ -415,7 +413,6 @@ config_udev_init(void)
         return 0;
 
     udev_enumerate_add_match_subsystem(enumerate, "input");
-    udev_enumerate_add_match_subsystem(enumerate, "tty");
 #ifdef CONFIG_UDEV_KMS
     udev_enumerate_add_match_subsystem(enumerate, "drm");
 #endif
-- 
2.16.1

